<template>
  <div id="index">
    <main-header :isMobile="isMobile" :isAbsolute="false"></main-header>
    <nuxt/>
    <main-footer :isMobile="isMobile"></main-footer>
  </div>
</template>


<script>
import MainHeader from  '~/components/Header'
import MainFooter from  '~/components/Footer'
import {chectIsMobile} from '~/assets/util'
export default{
   components:{
      MainHeader,MainFooter
   },
   data(){
      return {
         isMobile:false
      }
   },
   mounted(){
      if(chectIsMobile())
      this.isMobile = true;
   }
}
  
</script>

<style lang="stylus" scoped>
#index
  position relative
</style>
